package study.xmlObj;

import cn.hutool.json.JSONObject;
import cn.hutool.json.XML;

public class XmlObj {
    public static void main(String[] args) {
        String a = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n" +
                "<REPORT>\n" +
                "    <BASE>\n" +
                "        <BGBS>XJBG</BGBS>\n" +
                "        <BGZM>Q</BGZM>\n" +
                "        <BGSJ>20220714071215</BGSJ>\n" +
                "        <BWMC>BCPQ00010608</BWMC>\n" +
                "        <SJBS>{7852D7C8-CE55-45E3-B6C3-E20BE59662D8}</SJBS>\n" +
                "        <CZBZ>I</CZBZ>\n" +
                "        <BGBB>1.0</BGBB>\n" +
                "        <BWCD></BWCD>\n" +
                "    </BASE>\n" +
                "    <XJXX>\n" +
                "        <XJ_ID>5513202106080001</XJ_ID>\n" +
                "        <XJ_STATUS>1</XJ_STATUS>\n" +
                "        <XJ_SGMT>551</XJ_SGMT>\n" +
                "        <XJ_SGMT_NAME>天津</XJ_SGMT_NAME>\n" +
                "        <XJ_DW>5513</XJ_DW>\n" +
                "        <XJ_DW_NAME>南仓一站修所</XJ_DW_NAME>\n" +
                "        <XJ_DATE>2021-06-08</XJ_DATE>\n" +
                "        <XJ_TIME>11:58:56</XJ_TIME>\n" +
                "        <MAINT_TYPE>04</MAINT_TYPE>\n" +
                "        <ACCEPT_ROOM>天津段验收室</ACCEPT_ROOM>\n" +
                "        <TRANS_ADM_NAME>京</TRANS_ADM_NAME>\n" +
                "        <TRANS_ADM>P</TRANS_ADM>\n" +
                "        <TRANS_STN_CODE>NCP</TRANS_STN_CODE>\n" +
                "        <TRANS_STN_NAME>南仓</TRANS_STN_NAME>\n" +
                "        <SGMT_REP>车宝全</SGMT_REP>\n" +
                "        <SGMT_REP_DATE>2021-06-08</SGMT_REP_DATE>\n" +
                "        <SGMT_REP_TIME>11:58:56</SGMT_REP_TIME>\n" +
                "        <ACCEPT_REP>孙玉鹏</ACCEPT_REP>\n" +
                "        <ACCEPT_REP_DATE>2021-06-08</ACCEPT_REP_DATE>\n" +
                "        <ACCEPT_REP_TIME>11:58:56</ACCEPT_REP_TIME>\n" +
                "        <STN_REP>马欣</STN_REP>\n" +
                "        <STN_REP_DATE>2021-06-08</STN_REP_DATE>\n" +
                "        <STN_REP_TIME>13:50:07</STN_REP_TIME>\n" +
                "        <REP_STN>NCP</REP_STN>\n" +
                "    </XJXX>\n" +
                "    <CLXX>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>1450151</CAR_NO>\n" +
                "            <CAR_TYPE>C64K</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>1593547</CAR_NO>\n" +
                "            <CAR_TYPE>C70</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>1618180</CAR_NO>\n" +
                "            <CAR_TYPE>C70</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>1647834</CAR_NO>\n" +
                "            <CAR_TYPE>C70</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>1684408</CAR_NO>\n" +
                "            <CAR_TYPE>C70E</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>1735291</CAR_NO>\n" +
                "            <CAR_TYPE>C70E</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>1735364</CAR_NO>\n" +
                "            <CAR_TYPE>C70E</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>3467891</CAR_NO>\n" +
                "            <CAR_TYPE>P64GK</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>3805161</CAR_NO>\n" +
                "            <CAR_TYPE>P70</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>3812845</CAR_NO>\n" +
                "            <CAR_TYPE>P70</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>3818196</CAR_NO>\n" +
                "            <CAR_TYPE>P70</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>3819600</CAR_NO>\n" +
                "            <CAR_TYPE>P70</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>3823809</CAR_NO>\n" +
                "            <CAR_TYPE>P70</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>3829374</CAR_NO>\n" +
                "            <CAR_TYPE>P70</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>3837312</CAR_NO>\n" +
                "            <CAR_TYPE>P70</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>4633454</CAR_NO>\n" +
                "            <CAR_TYPE>C62BK</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>4866398</CAR_NO>\n" +
                "            <CAR_TYPE>C64K</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>4909078</CAR_NO>\n" +
                "            <CAR_TYPE>C64K</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>4927579</CAR_NO>\n" +
                "            <CAR_TYPE>C64K</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>4937423</CAR_NO>\n" +
                "            <CAR_TYPE>C64K</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>4972418</CAR_NO>\n" +
                "            <CAR_TYPE>C64K</CAR_TYPE>\n" +
                "        </ITEM>\n" +
                "    </CLXX>\n" +
                "    <JZGZ>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>1450151</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>1593547</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>1735291</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>1735364</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>3467891</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>3805161</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>3812845</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>3818196</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>3819600</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>3823809</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>3829374</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>3837312</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>4633454</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>4866398</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>4909078</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>4927579</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>4937423</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>4972418</CAR_NO>\n" +
                "            <JZGZ_CODE>76</JZGZ_CODE>\n" +
                "            <JZGZ_NAME>临修重点整治</JZGZ_NAME>\n" +
                "        </ITEM>\n" +
                "    </JZGZ>\n" +
                "    <ZDC>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>1450151</CAR_NO>\n" +
                "            <IHDLCARID>10751502</IHDLCARID>\n" +
                "            <SHDLRESULTCODE>5</SHDLRESULTCODE>\n" +
                "        </ITEM>\n" +
                "        <ITEM>\n" +
                "            <CAR_NO>4927579</CAR_NO>\n" +
                "            <IHDLCARID>10751571</IHDLCARID>\n" +
                "            <SHDLRESULTCODE>5</SHDLRESULTCODE>\n" +
                "        </ITEM>\n" +
                "    </ZDC>\n" +
                "</REPORT>";
        JSONObject jsonObject = XML.toJSONObject(a);
        String m = jsonObject.toJSONString(0);
        System.out.println(jsonObject);
        System.out.println(m);
    }
}
